package personal.xjl._23java1studentdemo.spring;


import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component("zhangsan")
@Data
public class Human {
    @Value("张三")
    String name;
    @Autowired
@Qualifier("hanxuebaoma")
    List<Car> cars;

    Map<String,Human> relatives;

}
